   <div class="admin_left actions">

    <h3 style="font-size:20px;">Manage more</h3>

        <ul>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consigners'), array('controller' => 'consigners', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consignments'), array('controller' => 'consignments', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
            <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Suppliers'), array('controller' => 'suppliers', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
        </ul>
    </div>

<div id="pinkHeader" class="admin_right items index">

	<div id=breadcrumbAdmin>
        <?php $this->Html->addCrumb('Purchases', '/Purchases/index', array('style'=> ('text-decoration:underline; color:#EB1E70;'))); ?>
        <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Transactions', 'url' => array('controller' => 'Sales', 'action' => 'index', 'plugin' => null), 'escape' => false)); ?>
    </div>

<div class="purchases index">
	<h2><?php echo __('Purchases'); ?></h2>

        <div id="search" style="text-align: left;">
                                <?php
                                    echo $this->Form->create('Purchases',array('action' => 'search'));
                                    echo $this->Form->input('keyword', array('label' => 'Search for'));
                                    echo $this->Form->end('Search');
                                ?>
                            </div>

       <p  class="actions" style="list-style-type:none; margin-bottom:2%;"><?php echo $this->Html->link(__('Add New Purchase'), array('action' => 'add')); ?></p>

    <table style="width:110%;" cellpadding="0" cellspacing="0" class="table table-bordered  table-hover">

	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('item_id'); ?></th>
			<th><?php echo $this->Paginator->sort('supplier_id'); ?></th>
			<th><?php echo $this->Paginator->sort('price'); ?></th>
			<th><?php echo $this->Paginator->sort('date'); ?></th>
			<th><?php echo $this->Paginator->sort('note'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($purchases as $purchase): ?>
	<tr>
		<td><?php echo h($purchase['Purchase']['id']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($purchase['Item']['name'], array('controller' => 'items', 'action' => 'view', $purchase['Item']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($purchase['Supplier']['id'], array('controller' => 'suppliers', 'action' => 'view', $purchase['Supplier']['id'])); ?>
		</td>
		<td><?php echo h($purchase['Purchase']['price']); ?>&nbsp;</td>
		<td><?php echo h($purchase['Purchase']['date']); ?>&nbsp;</td>
		<td><?php echo h($purchase['Purchase']['note']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $purchase['Purchase']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $purchase['Purchase']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $purchase['Purchase']['id']), null, __('Are you sure you want to delete # %s?', $purchase['Purchase']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

</div>